home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-11-10 | 2.7 KB | 85 lines | [TEXT/GEOL] |
- Item forwarded by SCHMUCKER1 to ALCABES
-
- Item forwarded by BURBECK.S to D2600 P.BORENSTEIN
-
- Item forwarded by SCHMUCKER1 to D0152
-
- Item forwarded by A33 to A34
-
- Item 2430430 7-Nov-89 02:23
-
- From: MADA.EUROPE MacApp Dev Assoc Europe, E Carrasco
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Structure of THINK Pascal VMT
-
- Attn: THINK Pascal specialists
- MADA USA
- ⁄ MacApp.Tech$
-
- From: Eric Carrasco
- MADA Europe
- 2, allée des Acacias
- F-95130 Le Plessis Bouchard
- France
- ⁄ MADA.Europe
-
- Sub: Structure of THINK Pascal VMT.
-
-
- Dear All,
-
- May I have your attention on this problem.
-
- We ported MacApp source code to THINK Pascal since two weeks. We can compile
- any MacApp Application source code. So, we can use LSP editor facilities to
- correct your source code dynamically (very usefull).
-
-
- The problem is we can't **LINK** MacApp because of some methodes which
- depends on MPW Pascal Method table...
- PROCEDURE %_CLASSINFO returns a pointer (in that case, a handle) to VMT
-
- and finally, we get a pSuperClassTable global variable, A Macintosh handle
- to VMT. (see UObject.Globals.p; Line 45)
-
- (Just a small parenthesis here. Mary, I can't see pSuperClassTable nor
- UObject.inc1.p global variables with the Mouser. Of course, MacAppers don't
- needs those globals. Maybe we could get an usefull "Complete Source Code For
- Curious and Hackers MacAppers" Option).
-
- pSuperClassTable is a handle to the combined superclass & classlist table.
- The integer at pSuperClassTable^^ gives the size of the superclass table. The
- classlist table immediately follows the superclass table and the first integer
- in the classlist table gives the size of the classlist table.
-
- We now have to do a very short work: all procedures which use this variable
- have to be reimplemented for LSP.
- PROCEDURE GetClassNameFromID; { uses pSuperClassTable }
- FUNCTION GetSuperClassID; { uses pSuperClassTable }
- PROCEDURE InitUObject; { uses pSuperClassTable }
- PROCEDURE OrderClassIdsByName; { uses pSuperClassTable to build the
- pOrderedClassIds global variable }
-
- PROCEDURE GetClassIDFromName; { uses pOrderedClassIds }
- FUNCTION GetClassSizeFromId; { uses pOrderedClassIds }
-
- other methods depends on VMT structure:
-
- FUNCTION GetClassID;
-
-
- If anybody is in relation with Symantec, please send them this message.
-
-
- Remember we work on it for **YOU** MacAppers and specially beginers.
- I'm quite sure (and I know) that a lot of THINK Developpers will come to
- MacApp after we finished this work. Thanks for your help.
-
-
- Regards,
-
- .Eric
-
-